package com.atguigu.testdemo;

import com.atguigu.autowire.Staff;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAutowire {
    @Test
    public void test1(){
        ApplicationContext context=new ClassPathXmlApplicationContext("bean9.xml");
        Staff staff = context.getBean("Staff", Staff.class);
        System.out.println(staff);
    }
}
